package io.hugetower.modules.pest.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.hugetower.common.utils.PageUtils;
import io.hugetower.common.utils.Query;

import io.hugetower.modules.pest.dao.CropPestDiseaseDao;
import io.hugetower.modules.pest.entity.CropPestDiseaseEntity;
import io.hugetower.modules.pest.service.CropPestDiseaseService;


@Service("cropPestDiseaseService")
public class CropPestDiseaseServiceImpl extends ServiceImpl<CropPestDiseaseDao, CropPestDiseaseEntity> implements CropPestDiseaseService {

    @Override
    public PageUtils queryPage(Map<String, Object> params, CropPestDiseaseEntity cropPestDiseaseEntity) {
        IPage<CropPestDiseaseEntity> page = this.page(
                new Query<CropPestDiseaseEntity>().getPage(params),
                new QueryWrapper<CropPestDiseaseEntity>()
        );

        return new PageUtils(page);
    }

}